<!DOCTYPE html>
<meta charset="utf-8">
<body>foo
<button id="element"></button>
<script>
    window.text = document.body.firstChild;
</script>
